<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<div class="container_0 clearfix">
	<div class="box no-border">
		<div class="header">
			<h2></h2>
		</div>
		<isperp:grid url="bpm/processSetting/listDetail?type=idd"
			gridId="processSettingGrid" gridTitle=""
			showSearchbar="false" cusDialogSize="maximize"
			cusEditUrl="individuation/individuationForm/individuationProcessEdit"
			ondbClickRowEvent="processSettingGrid.edit(rowid);">
			<jsp:attribute name="toolbar">
			<isperp:toolbar id="entityToolbar">
				 <isperp:button id="processSettingGridCreate" text="新增流程"
						icon="icon-plus"
						onclick="isperp.openDialog({maximize:true,title:'新增流程',contentUrl:'individuation/individuationForm/individuationProcessEdit'})"></isperp:button>
			</isperp:toolbar>
			</jsp:attribute>
			<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="deployment_id" title="deployment_id"
					hidden="true"></isperp:column>
				<isperp:column name="deployment_name" title="名称" width="120">
				</isperp:column>
				<isperp:column name="suspension_state" title="状态" width="50"
					isFormatterFun="true"
					formatter="if(cellvalue=='1') return '激活';else return '挂起';">
				</isperp:column>
		     	<isperp:column name="procedef_version" title="版本" width="40">
				</isperp:column>
				<isperp:column name="modifier_name" title="修改者" width="60">
				</isperp:column>	
				<isperp:column name="modify_date" title="修改时间" width="90">
				</isperp:column>
			</jsp:body>
		</isperp:grid>
	</div>

</div>

<script type="text/javascript">
	function exportProcess() {
		var row = processSettingGrid.getRowData();
		if (row == undefined || row == null) {
			isperp.alert("请选择一条记录！");
			return false;
		}

		isperp.showDialog({
			contentUrl : "workflow/processDefinition/exportXml/" + row.deployment_id
		});
	}
</script>
